import {createRouter,createWebHistory,RouteRecordRaw} from 'vue-router'

const routes:Array<RouteRecordRaw>=[
    {
        path:'/',
        name:'Home',
        component:()=>import('../components/HelloWorld.vue')
    },
    {
        path:'/Register',
        name:'Register',
        component:()=>import('../view/Member/Register.vue')
    },
    {
        path:'/Login',
        name:'Login',
        component:()=>import('../view/Member/Login.vue')
    },
    {
        path:'/addMemberInfo/:mL_Id',
        name:'addMemberInfo',
        component:()=>import('../view/Member/addMemberInfo.vue')
    },
    {
        path:'/showMemberInfo',
        name:'showMemberInfo',
        component:()=>import('../view/Member/showMemberInfo.vue')
    },
    {
        path:'/UserMemberInfo',
        name:'UserMemberInfo',
        component:()=>import('../view/Member/UserMemberInfo.vue')
    },
    {
        path:'/MemberDiscountList',
        name:'MemberDiscountList',
        component:()=>import('../view/Member/MemberDiscountList.vue')
    },
    {
        path:'/addRight',
        name:'addRight',
        component:()=>import('../view/MemberRight/addRight.vue')
    },
    {
        path:'/showRight',
        name:'showRight',
        component:()=>import('../view/MemberRight/showRight.vue')
    },
    {
        path:'/sRight',
        name:'sRight',
        component:()=>import('../view/MemberRight/sRight.vue')
    },
    {
        path:'/EditRight/:mRid',
        name:'EditRight',
        component:()=>import('../view/MemberRight/EditRight.vue')
    },
    {
        path:'/addRank',
        name:'addRank',
        component:()=>import('../view/MemberRank/addRank.vue')
    },
    {
        path:'/showRank',
        name:'showRank',
        component:()=>import('../view/MemberRank/showRank.vue')
    },
    {
        path:'/editRank',
        name:'editRank',
        component:()=>import('../view/MemberRank/editRank.vue')
    },
    {
        path:'/addShop',
        name:'addShop',
        component:()=>import('../view/Shop/addShop.vue')
    },
    {
        path:'/showShop',
        name:'showShop',
        component:()=>import('../view/Shop/showShop.vue')
    },
    {
        path:'/editShop',
        name:'editShop',
        component:()=>import('../view/Shop/editShop.vue')
    },
    {
        path:'/addDiscount',
        name:'addDiscount',
        component:()=>import('../view/Coupon/addDiscount.vue')
    },
    {
        path:'/showDiscount',
        name:'showDiscount',
        component:()=>import('../view/Coupon/showDiscount.vue')
    },
    {
        path:'/editDiscount',
        name:'editDiscount',
        component:()=>import('../view/Coupon/editDiscount.vue')
    },
    {
        path:'/writeoffDiscount',
        name:'writeoffDiscount',
        component:()=>import('../view/Coupon/writeoffDiscount.vue')
    },
    {
        path:'/showRoomType',
        name:'showRoomType',
        component:()=>import('../view/room/showRoomType.vue')
    },
    {
        path:'/addRoomType',
        name:'addRoomType',
        component:()=>import('../view/room/addRoomType.vue')
    },
    {
        path:'/showRType',
        name:'showRType',
        component:()=>import('../view/room/showRType.vue')
    },
    {
        path:'/editRoomType',
        name:'editRoomType',
        component:()=>import('../view/room/editRoomType.vue')
    },
    {
        path:'/addNumber',
        name:'addNumber',
        component:()=>import('../view/RoomNumber/addNumber.vue')
    },
    {
        path:'/showNumber',
        name:'showNumber',
        component:()=>import('../view/RoomNumber/showNumber.vue')
    },
    {
        path:'/editNumber',
        name:'editNumber',
        component:()=>import('../view/RoomNumber/editNumber.vue')
    },
    {
        path:'/addRowRoom',
        name:'addRowRoom',
        component:()=>import('../view/RowRoom/addRowRoom.vue')
    }
  

]


const router=createRouter({
    history:createWebHistory(),
    routes
})

export default router